import {
  get,
  post
} from "../http"

/**
 * 获取侧边菜单
 */
export function getSideMenus() {
  return post({
    url: '/v1/member/menu',
  })
}

/**
 * 获取后台定义数组
 * @param key   ['express_map', 'cncnpayBankMap', 'bankMap']
 * @returns {Object | Object | Promise | Promise<unknown>}
 */
export function getConfigMap(key) {
  return get({
    url: '/v1/config/map/'+key,
  })
}